﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E09 RID: 3593
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RemoveRotaterScRsp : IMessage<RemoveRotaterScRsp>, IMessage, IEquatable<RemoveRotaterScRsp>, IDeepCloneable<RemoveRotaterScRsp>, IBufferMessage
	{
		// Token: 0x17002DAC RID: 11692
		// (get) Token: 0x0600A15C RID: 41308 RVA: 0x001AFCC7 File Offset: 0x001ADEC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RemoveRotaterScRsp> Parser
		{
			get
			{
				return RemoveRotaterScRsp._parser;
			}
		}

		// Token: 0x17002DAD RID: 11693
		// (get) Token: 0x0600A15D RID: 41309 RVA: 0x001AFCCE File Offset: 0x001ADECE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RemoveRotaterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002DAE RID: 11694
		// (get) Token: 0x0600A15E RID: 41310 RVA: 0x001AFCE0 File Offset: 0x001ADEE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RemoveRotaterScRsp.Descriptor;
			}
		}

		// Token: 0x0600A15F RID: 41311 RVA: 0x001AFCE7 File Offset: 0x001ADEE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RemoveRotaterScRsp()
		{
		}

		// Token: 0x0600A160 RID: 41312 RVA: 0x001AFCF0 File Offset: 0x001ADEF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RemoveRotaterScRsp(RemoveRotaterScRsp other) : this()
		{
			this.rotaterData_ = ((other.rotaterData_ != null) ? other.rotaterData_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.energyInfo_ = ((other.energyInfo_ != null) ? other.energyInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A161 RID: 41313 RVA: 0x001AFD58 File Offset: 0x001ADF58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RemoveRotaterScRsp Clone()
		{
			return new RemoveRotaterScRsp(this);
		}

		// Token: 0x17002DAF RID: 11695
		// (get) Token: 0x0600A162 RID: 41314 RVA: 0x001AFD60 File Offset: 0x001ADF60
		// (set) Token: 0x0600A163 RID: 41315 RVA: 0x001AFD68 File Offset: 0x001ADF68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterData RotaterData
		{
			get
			{
				return this.rotaterData_;
			}
			set
			{
				this.rotaterData_ = value;
			}
		}

		// Token: 0x17002DB0 RID: 11696
		// (get) Token: 0x0600A164 RID: 41316 RVA: 0x001AFD71 File Offset: 0x001ADF71
		// (set) Token: 0x0600A165 RID: 41317 RVA: 0x001AFD79 File Offset: 0x001ADF79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002DB1 RID: 11697
		// (get) Token: 0x0600A166 RID: 41318 RVA: 0x001AFD82 File Offset: 0x001ADF82
		// (set) Token: 0x0600A167 RID: 41319 RVA: 0x001AFD8A File Offset: 0x001ADF8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo EnergyInfo
		{
			get
			{
				return this.energyInfo_;
			}
			set
			{
				this.energyInfo_ = value;
			}
		}

		// Token: 0x0600A168 RID: 41320 RVA: 0x001AFD93 File Offset: 0x001ADF93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RemoveRotaterScRsp);
		}

		// Token: 0x0600A169 RID: 41321 RVA: 0x001AFDA4 File Offset: 0x001ADFA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RemoveRotaterScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RotaterData, other.RotaterData) && this.Retcode == other.Retcode && object.Equals(this.EnergyInfo, other.EnergyInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A16A RID: 41322 RVA: 0x001AFE08 File Offset: 0x001AE008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rotaterData_ != null)
			{
				num ^= this.RotaterData.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.energyInfo_ != null)
			{
				num ^= this.EnergyInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A16B RID: 41323 RVA: 0x001AFE73 File Offset: 0x001AE073
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A16C RID: 41324 RVA: 0x001AFE7B File Offset: 0x001AE07B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A16D RID: 41325 RVA: 0x001AFE84 File Offset: 0x001AE084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rotaterData_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RotaterData);
			}
			if (this.energyInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A16E RID: 41326 RVA: 0x001AFEFC File Offset: 0x001AE0FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rotaterData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotaterData);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.energyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A16F RID: 41327 RVA: 0x001AFF6C File Offset: 0x001AE16C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RemoveRotaterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rotaterData_ != null)
			{
				if (this.rotaterData_ == null)
				{
					this.RotaterData = new RotaterData();
				}
				this.RotaterData.MergeFrom(other.RotaterData);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.energyInfo_ != null)
			{
				if (this.energyInfo_ == null)
				{
					this.EnergyInfo = new RotaterEnergyInfo();
				}
				this.EnergyInfo.MergeFrom(other.EnergyInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A170 RID: 41328 RVA: 0x001B0000 File Offset: 0x001AE200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A171 RID: 41329 RVA: 0x001B000C File Offset: 0x001AE20C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 74U)
					{
						if (num != 98U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.energyInfo_ == null)
							{
								this.EnergyInfo = new RotaterEnergyInfo();
							}
							input.ReadMessage(this.EnergyInfo);
						}
					}
					else
					{
						if (this.rotaterData_ == null)
						{
							this.RotaterData = new RotaterData();
						}
						input.ReadMessage(this.RotaterData);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003E56 RID: 15958
		private static readonly MessageParser<RemoveRotaterScRsp> _parser = new MessageParser<RemoveRotaterScRsp>(() => new RemoveRotaterScRsp());

		// Token: 0x04003E57 RID: 15959
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003E58 RID: 15960
		public const int RotaterDataFieldNumber = 9;

		// Token: 0x04003E59 RID: 15961
		private RotaterData rotaterData_;

		// Token: 0x04003E5A RID: 15962
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04003E5B RID: 15963
		private uint retcode_;

		// Token: 0x04003E5C RID: 15964
		public const int EnergyInfoFieldNumber = 12;

		// Token: 0x04003E5D RID: 15965
		private RotaterEnergyInfo energyInfo_;
	}
}
